package cn.aitrox.ry.service.config.enumtype;

public enum ImageTransferModeEnum {

    VIDEO_FRAME_EXTRACT("VIDEO_FRAME_EXTRACT", "视频帧提取");

    private String mode;

    private String desc;

    ImageTransferModeEnum(String mode, String desc) {
        this.mode = mode;
        this.desc = desc;
    }

    public String getMode() {
        return mode;
    }

    public String getDesc() {
        return desc;
    }

    public static ImageTransferModeEnum getEnum(String mode) {
        for (ImageTransferModeEnum modeEnum : ImageTransferModeEnum.values()) {
            if (modeEnum.getMode().equalsIgnoreCase(mode)) {
                return modeEnum;
            }
        }
        return null;
    }
}
